package com.zijidelu.luframework.plugins.tomlock.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 锁配置信息
 *
 * @author ZIJIDELU
 * @datetime 2025/4/9 22:06
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "lu.lock")
public class LockProperties {

    /**
     * 超时时间，毫秒
     */
    private Integer timeout = 10000;

    /**
     * 过期时间，毫秒
     */
    private Integer expire = 30000;

    /**
     * 锁前缀
     */
    private String lockPrefix = "TomLock";

}
